s = str(input('вводите строку'))
f = s
for i in s:
    if i in "qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM[]{}\|;':,.<>/?":
        s = s.replace(i,'')
for i in range(len(s)):
    s = s.replace(' ','')
    s = s.replace('()','')
    s = s.replace('{}','')
    s = s.replace('<>','')
    s = s.replace('[]','')
if len(s) == 0:
    print('true',f)
else:
    print('False', s)